export function getValue(name){
    const cookies = document.cookie.split(';');
    for (let c of cookies) {
        const [k, v] = c.trim().split('=');
        if (decodeURIComponent(k) === name) {
            return decodeURIComponent(v);
        }
    }
    return null;
}